const storage = {}

const accessToken = 'AccessToken'

storage.getToken = function () {
  return localStorage.getItem(accessToken)
}

storage.setToken = function (token = {}) {
  localStorage.setItem(accessToken, token)
}

storage.getItem = function (item) {
  return localStorage.getItem(item)
}

storage.setItem = function (item, value = {}) {
  localStorage.setItem(item, value)
}

storage.cleanAll = function () {
  localStorage.clear()
}
export default storage
